package com.hbnu.thread;

import java.util.concurrent.Callable;

public class ThreadDemo3 implements Callable<String> {
    @Override
    public String call() throws Exception {
        for (int i = 0; i < 100; i++) {
            System.out.println("Callable创建线程："+i);
        }
        return "通过实现Callable接口创建线程";
    }
}
